package com.zznzzn.myweb.service;

import com.zznzzn.myweb.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface UserService {

    public boolean checkUsername(String username);
    public User login(User user) throws Exception;

    public User addUser(User user);
    public User getUserById(String uuid);
    public User getUserByName(String name);

    public List<User> listAllUser();

    public boolean updateUser(User user);

    public User harmless(User user);
}
